import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: cjc
 * Date: 2025-03-05
 * Time: 19:35
 */
public class Test {
    public static void test1(int[] array) {
        array[0] = 77;
    }
    public static void test2(int[] array) {
        array = new int[]{100,200,300,400,500};
    }
    public static void main(String[] args) {
        int[] array1 = {1,2,3,4,5};
        test1(array1);
        System.out.println(Arrays.toString(array1));
        int[] array2 = {1,2,3,4,5};
        test2(array2);
        System.out.println(Arrays.toString(array2));
    }
}
